home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20041116-20060924
/
000390_nospam@killspam.org_Mon Jul 24 14:31:47 2006.msg
< prev
next >
Wrap
Internet Message Format
|
2006-09-27
|
2KB
Path: reader2.panix.com!reader1.panix.com!panix!newsfeed.media.kyoto-u.ac.jp!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!9477d3c5!not-for-mail
From: <nospam@killspam.org>
Newsgroups: comp.protocols.kermit.misc
References: <ZTwvg.428$gF6.317@newsread2.news.pas.earthlink.net> <slrnebv5tf.kfh.fdc@panix1.panix.com>
Subject: Re: file pattern matching on files
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
Message-ID: <GYqwg.1451$gF6.66@newsread2.news.pas.earthlink.net>
Date: Sat, 22 Jul 2006 14:52:22 GMT
NNTP-Posting-Host: 24.148.161.57
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread2.news.pas.earthlink.net 1153579942 24.148.161.57 (Sat, 22 Jul 2006 07:52:22 PDT)
NNTP-Posting-Date: Sat, 22 Jul 2006 07:52:22 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
Xref: panix comp.protocols.kermit.misc:15522
My "final solution"
I call this macro prior to executing any download utilizing pattern
matching.
For more general use, error checking to handle duplicate filenames and
rename failure should be implemented.
define RenameLowerCase {
local files_matching_pattern
local num_files_matching_pattern
local \%i
assign files_matching_pattern *
remote query kermit \%ffiles(\m(files_matching_pattern))
assign num_files_matching_pattern \Feval(\v(query) -1) ; ffiles() returns
a zero based array.
for \%i 0 \m(num_files_matching_pattern) 1 {
remote query kermit \%fnextfile(\m(files_matching_pattern))
remote rename \v(query) \Flower(\v(query))
}
}